package com.xz;

import org.junit.Test;

/**
 * @author XZ
 * @create 2021-04-23 22:04
 */
public class Main {
    @Test
    public void test01() {
        Queue<Integer> queue = new Queue<>();
        queue.enQueue(11);
        queue.enQueue(22);
        queue.enQueue(33);
        queue.enQueue(44);
        queue.enQueue(55);

        while (!queue.isEmpty()) {
            System.out.println(queue.deQueue());
        }
    }

    @Test
    public void test02() {
        Deque<Integer> queue = new Deque<>();


        while (!queue.isEmpty()) {
            System.out.println(queue.deQueueFront());
        }
    }
}
